package com.jy.appmarket.network.engine;

import java.util.Map;

import com.jy.appmarket.network.resultdata.LoginResult;

import android.content.Context;

public class LoginNetEngine extends BaseNetEngine {
	private String mPhoneNum;
	private String mPassword;
	
	public LoginNetEngine(String phoneNum, String password) {
		mResultData = new LoginResult();
		mPhoneNum = phoneNum;
		mPassword = password;
		mHttpMethod = HTTP_POST;
	}

	@Override
	protected String getCommand() {
		return "login";
	}

	@Override
	protected void postParams(Context context, Map<String, String> params) {
		params.put("phoneNum", mPhoneNum);
		params.put("password", mPassword);
	}
}
